<template>
  <div>
    <div>
      <h4>分娩史</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="12">
          <div>
            <span>产后 </span>
            <el-input v-model="pgForm.childbirth_history_input1" placeholder="" style="width: 30%;"></el-input>
            <span> 天</span>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>本次分娩时间 </span>
            <el-input v-model="pgForm.childbirth_history_input2" placeholder="" style="width: 70%;"></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>单胎 </span>
            <el-select v-model="pgForm.childbirth_history_value1" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>剖宫产 </span>
            <el-select v-model="pgForm.childbirth_history_value2" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>无痛麻醉 </span>
            <el-select v-model="pgForm.childbirth_history_value3" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>会阴侧切 </span>
            <el-select v-model="pgForm.childbirth_history_value4" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>

        <el-col :span="6">
          <div>
            <span>顺产阴道分娩 </span>
            <el-select v-model="pgForm.childbirth_history_value5" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>产钳助产 </span>
            <el-select v-model="pgForm.childbirth_history_value6" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>会阴裂伤 </span>
            <el-select v-model="pgForm.childbirth_history_value7" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>宝宝出生体重 </span>
            <el-input v-model="pgForm.childbirth_history_input3" placeholder="" style="width: 30%;"></el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "childbirth_history",
  title: "分娩史",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options: [{
        value: '是',
        label: '是'
      }, {
        value: '否',
        label: '否'
      }],
      pgForm: {
        childbirth_history_value1: '',
        childbirth_history_value2: '',
        childbirth_history_value3: '',
        childbirth_history_value4: '',
        childbirth_history_value5: '',
        childbirth_history_value6: '',
        childbirth_history_value7: '',
        childbirth_history_input1: '',
        childbirth_history_input2: '',
        childbirth_history_input3: '',
      },

    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
